package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Favorable;

/**
 * favorableMapper接口
 * 
 * @author ruoyi
 * @date 2024-12-16
 */
public interface FavorableMapper 
{
    /**
     * 查询favorable
     * 
     * @param id favorable主键
     * @return favorable
     */
    public Favorable selectFavorableById(Long id);

    /**
     * 查询favorable列表
     * 
     * @param favorable favorable
     * @return favorable集合
     */
    public List<Favorable> selectFavorableList(Favorable favorable);

    /**
     * 新增favorable
     * 
     * @param favorable favorable
     * @return 结果
     */
    public int insertFavorable(Favorable favorable);

    /**
     * 修改favorable
     * 
     * @param favorable favorable
     * @return 结果
     */
    public int updateFavorable(Favorable favorable);

    /**
     * 删除favorable
     * 
     * @param id favorable主键
     * @return 结果
     */
    public int deleteFavorableById(Long id);

    /**
     * 批量删除favorable
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFavorableByIds(Long[] ids);
}
